package subscriber

import (
	"context"
	"github.com/micro/go-log"

	redbags "git.oschina.net/fanbuchi/xgggh/redbags/proto/redbags"
)

type RedBags struct{}

func (e *RedBags) Handle(ctx context.Context, msg *redbags.Message) error {
	log.Log("Handler Received message: ", msg.Say)
	return nil
}

func Handler(ctx context.Context, msg *redbags.Message) error {
	log.Log("Function Received message: ", msg.Say)
	return nil
}
